package com.yunda.nebula.gateway.plugin.base;

import com.yunda.nebula.gateway.plugin.api.NebulaPlugin;
import com.yunda.nebula.gateway.plugin.api.NebulaPluginChain;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * \* User: wei.zhang
 * \* Date: 2020/9/6 17:24
 * \* Description:
 *
 * @author wei.zhang
 * \
 */

public abstract class BasePlugin implements NebulaPlugin {
    @Override
    public Mono<Void> execute(ServerWebExchange exchange, NebulaPluginChain chain) {
        return null;


    }

    public abstract Mono<Void> doExecute();

    @Override
    public int getOrder() {
        return 0;
    }
}
